Added missing "\" to sed code.

The replacement that was being done was inserting "n" instead of
a newline.
Added empty '' parameter to -i switch to keep sed from writing backup
files.