Dynamically expand variables to allow for changing environment after initialization
fix: Dynamically expand variables to allow for changing environment after initialization (e.g., when executing env step)
This fixes the pipeline issues recently (here and here) after merging !417 (merged)