Added script to git checkout the correct branches in submodules, because git submodule update creates detached heads.