Support directories in deletion as well
Use move-file-to-trash directly