Pass the right environ to VT's env.

Fixes #17262
Closes #17263