#34 mktemp with template