Deleting dead files
Preventing dir creation failure if the output dir already exists (RC). Fixes issue 6704