removes extension folders in order to add them as submodules