Fix hostname_g initialization from gethostname()