For UI mode, make the temp dir if it doesn't exist.