Fixed env var check.