Currently, the upgrade script upgrades to v4.2.0-beta1 You probably need to grep out "beta" in the "git checkout" line.