Reuse ConfigurationContext when searching for programs if we have one

This enables proper logging when checking for rst2html during configuration.