fix hostname generation with --net=host