hostname: ensure that this works on Windows and improve help menu

Small ```hostname``` improvements to improve consistency and reliability.