Rewrite line endings for ever conflicting paths.

This should be a partly fix for #2679.