Case fix

tmpdir doesn't work on some platforms.