Fixed permissions for script