BugFix (no tmp directory causes exception)