Revert "fix use of non-existent env var"

This reverts commit 1f8250565cff6859f0834e2a8dd100f1969894b1.