simple fix for 'del foo' where foo is a folder.