Pruning submodule directories
closes #3853