bugfix for --prune file deletion