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.