Change way of getting hostname