Use tmpDir when creating new files
Merge pull request #61 from jamesgol/usetmpdir

Use tmpDir when creating new files