Fix boolean logic so verify_env has meaning
Merge pull request #7622 from rmt/develop

Fix boolean logic so verify_env has meaning