More elegant way to sed the hosts file - refs #343

Refs #343