build: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE