slight cleanup to hostname setup

Signed-off-by: Ken Barber <ken@bob.sh>