Added posibility to set temp and log dir by constants.