(#20863) removes host file generation from --preserve-hosts option

As discussed in bug #20863.