Fix utils_line

Fix one obvious typo (1 instead of l, which could break everything --
we're lucky it never did), and always append \n to the line to add (we
were not doing that when also removing a line).
Merge pull request #588 from vuntz/fix-utils_line

Fix utils_line