language_module_dependency: don't use build_env.

This is so a e.g. brewed Python's modules can be found by superenv.

References #26229.
Closes #26197.