Pass the right environ to VT's env.

Fixes #17262
Closes #17263
Merge pull request #17277 from s0undt3ch/hotfix/pass-the-right-env-to-vt

Pass the right environ to VT's env.