there's no guarantee that there will be a HOSTNAME environment variable set. And even if one is found, there's no guarantee it'll be correct.