Fix karma.conf.js updating on Windows

Karma.conf.js may contain \r's when checked out on Windows. Cope with these when updating the karma configuration file content.
Good tip. I've gone with ``\r?\n``. The only platform using ``\r`` is MacOS (pre-OSX)... so no need to support that anymore I think :)