fix permissions of executables before installing