Apparently mktemp with busybox (and no GNU coreutils) requires mktemp template to be XXXXXX. Thanks to pippin for raising this issue.