added missing line endings (-l) support for windows and solaris

Adds newline support for Windows and Solaris (users of the concatfragments.rb script)

Addresses MODULES-1205

Don't believe there are any tests I need to satisfy here(?)