fixed: a problem with temp file creation, when path is missing