make hostname portable