[bug 905834] Fixed submodule check.