Make config loading more flexible.