Fix of tmpDir util functions. Before the fix user processes didn't output anything
to the log file. static variable utilTmpDir wasn't ininialized.
Force the code to use instance-like way of managing global variables.
However this patch needs for Kapils review.