More portable sending to tmp