os.tmpDir backwards compatibility for 0.8.x