./update script: support extra arguments.

--submodule: update to the submodule-registered versions.
--master:    update to the master branch versions.
--release:   update to the latest released versions.