Set host accordingly to the configuration

this closes https://github.com/daisy/pipeline-issues/issues/377