create tmpdir if one doesn't exist