ensures tmp directory is created