fix initialization of hostname from conf file