now determine hostname via socket.gethostname() as HOSTNAME environment variable is apparently not set on all platforms