fix missing tmp directory