Added -p option to cp to ensure executables are installed as executable.