Fixed permissions on copied files