Update generate-single-repo.sh:
more smart check of new version.