Fixed permissions on apply.sh