bugfix: not existing files can't be deleted