Did you turn on execute permissions on the file? chmod u+x path/to/file