mktemp -t takes a prefix, not a template.

With -t, mktemp will build the template for you from a prefix, making the
.XXXXXX unnecessary.