fix #1210

also changed remove('ParsInsert.log') to use remove_files, I
though this would prevent the same issue happening for ParsInsert