Made delete() handle submodules correctly

Previously delete() did not use the `-r' flag when invoking rm, which
meant that it could not remove any submodules in a repo (since these
appear as directories in `git ls-files'). This patch adds that flag to
fix this.