Allow hostname to be specified in config file