Fix error with permissions on executables on Mac