script for cleaning submodules