get the hostname from an environment var to be a bit more flexible.