fix #1210

also changed remove('ParsInsert.log') to use remove_files, I
though this would prevent the same issue happening for ParsInsert
Merge pull request #1220 from teravest/issue1210

fix #1210