ensure tmp directories are created