build: check that the versions match. Moved updating to update.sh.