Use tmpDir variable