Fix build.sh when there is no new version.