Fixes an issue with file permissions on the remote server.