Update submodules to latest versions
Fix update script

I had intended for the first step of this script to make each submodule
checkout the master branch, but I failed to include the important `git`
command.