ensure tmp directory has been created