apply line ending fix only on Windows
relates to #4785