Convert submodules to directories