Don't call path.exists if output_dir is None