From the question below, I was able to figure out how to check if it can be run on a posix compatible file system.
How to check if a file is executable in go?
Howe