make sure the temp file is unique

R was crashing when pulling attachments from local couchdb

This doesn't fix the issue.  But it seems harmless enough, and useful
if the tempdir is the same for two spawned jobs.
add an underscore to filename

again, doesn't fix the underlying problem of choking on local downloads