extract_upgrade.sh: check if file exists