Do not use os.linesep when writing files