[utils][commands][install] Improve query to get an environment

The current one gets the first environment found
for the python language rather than getting an
active environment for that language.
1 job for make_install_more_flexible in 17 minutes and 20 seconds (queued for 9 seconds)
Status Job ID Name Coverage
  Build
passed #223157
docker-build
build_linux_36

00:17:20

69.0%