(#3910) Give environment in indirection calls in configurer
In order to make sure we handle the (no longer global) environment correctly
when setting up an agent run, pass the environment as an option to all
indirection calls that the configurer makes.