Fixing bad return value from setExecutablePermissions