Set hostname properly