Allow environment variable and maintain BC

In order to use this, you currently have to edit the code directly.
This change lets other devs drop it in, then set an ENV var to
override so the code doesn't have to change.