Fix the 'update-versions' option logic in the build task.