If you should experience issues with console apps of the aforementioned type using external files copied with a CopyBuild Step, please check xojoinc/xojo#68754.
I found that CopyFiles will place external items one level “too high” in folder hierarchy.