creates env directory in  if needed