Fix hostsfile generation in discovered cases so that the real hostname always comes first