fixed: config_dir is not a global.