use mktemp for Processing, credit Eliot Alter
Fix escaping issue