fixed tmp.dir resolution