fixed some problems with host file generation