fix tmp directories
Fixed tmp directories