unify permissions and line endings