using os.hostname() to detect hostname instead of env variable