Normalize line endings and file permissions