Add platform newline function
Add solaris, darwin, osx to \n
Remove osx from \r
Add automatic local platform option
Use move instead of copy for replacing newline file
Change NUL to /dev/null on cygwin