bugfix
Force existence of temp and log directories.