Newline before string when adding to /etc/hosts

Adding a newline before the string when adding the line to /etc/hosts. For users without trailing newline in the file. They would get this result:
127.0.0.1 localhost127.0.0.1 productsearch.ubuntu.com

With this patch:
127.0.0.1 localhost
127.0.0.1 productsearch.ubuntu.com