Fixing some scoping issues in the config class lookup method.