mk_mx_sd: use mktemp when creating a temp folder