fix file permissions for deployments