Make sure there's one-and-only-one trailing newline.

This works for me to fix https://github.com/dnbert/prm/issues/33.
Merge pull request #34 from saintaardvark/fix_invalid_packages_newlines_problem

Make sure there's one-and-only-one trailing newline.