fix ENV hostname lookup

hostName was returning null, according to http://nodejs.org/docs/latest/api/url.html hostname is what we want here I think