Use os.EOL instead of custom solutions

Just spotted them, seem to be relicts of ancient times.