fix recursive submodule_scan