Write out new host entries one line at a time
Merge pull request #4533 from tempspace/develop

Write out new host entries one line at a time