Grep out non-hosts, use a temp file.

This prevents non-conforming lines from entering your host file. They should all start with 127.0.0.1.