switch git submodule versions correctly

when switching to a revision also switch to the corresponding submodule version