make host name detection a touch more robust by not trying to be too cute