Fixed error at try to set temp and log files