Using java.io.tmpDir rather than hardcoded /tmp for test