Fix problem where HTTP_HOST is not set when called via command line.