Added support for deleting directories