fix line endings for unix in config writer