If pam_tmpdir is in use, use the temporary directory for the sudoing user, rather than that for root.