proper handling of the KNOWLEDGE_HOST configuration option