Correctly reads output_dir from config dict