Better way to override hostname

Actually works this time