Fix perms on pre-build hook