Move the docker host determination out of compile time