Fix r.js tests on Windows

Fixed assumptions about linefeed-only endings.  The node-based tests now pass on Windows.