make sure the tmp directory exists for tests