Clean up file permissions