fix(resource): re-implement /etc/hosts fix

This was implemented for confd 0.5.x in #123, but lost when the
0.6.x branch was made the new master.
Merge pull request #142 from carmstrong/fix_123

fix(resource): re-implement /etc/hosts fix