ensure env directory