ensure correct submodule branch is checked out