Adding newline when rewriting package.json

Closes #3
Merge pull request #4 from pdehaan/patch-2

Adding newline when rewriting package.json