Fix issues with --noop and hostsFile

I was running into these issues with some testing. It might be bad so I didn't want to commit it straight to master.