Fixed issue related to spaces

It seems recurisively deleting something with spaces in the name,
perhaps using globs, caused errors. This seems to fix it.