Make all environments available from modules.

This is another step towards #1750.  Also, will be helpful for fixing #1793 (more to come on that front in a future PR).
It could be added to the project's config since it's being passed in to the options