convert submodule to directory