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.
"\r\n?|\n" would be more accurate and also work in cases where line ending is just \r. Only useful if those still exist.