Use OS specific EOL instead of RegExp