Fixed permissions for preparation scripts