Support overriding environment check for on-prem deployment