improved file deletion in postproc functions in windows