Extract upgrade_dir