Fixed error at try to set temp and log files - Issue #1