Fix upgrade script to update submodules.