Change tmpdir to tmpDir 

tmpdir doesn't work on some platforms.