Generalize detection of configuration in ipython tasks to fix logging setup. Handle older system YAML files without variant section.