submodule: check for unmerged .gitmodules outside of config parsing