Make sure the execute permissions of chmod +x are set. Check the man page for path_resolution:

Of the three bits used, the first bit determines read permission, the second write permission, and the last execute permission in case of ordinary files, or search permission in case of directories.

Updated: