Fixes bug when deleting files as another user
Fixes bug when deleting filenames with spaces