read lines support for files with \r\n

Special case for files with \r\n line breaks when running under POSIX. Apparently readlines() keeps line break and the carriage return which messes up the regex patterns.
Using splitlines() removes everything so we are good across all platforms.
Merge pull request #4 from Hexadite/newline_fix

read lines support for files with \r\n