always use the correct mktemp. Closes #5

With thanks to @smammy :+1: