Get config_dir and output_dir more directly.