Platform independent temp dir

test_queue plugin uses platform independent temp dir for writing mail.