Fix line ends in logfile