Make newline detection platform independent
Merge pull request #1 from gerbercj/fix/newlines

Make newline detection platform independent