fix some newline issues in log files