Ensure tmp directory