Fix hosts file use on Windows.

Hosts files have not been picked up due to two issues. These two commits fix those.