Convert submodule to directory