Fixes #6187 - Rewrite lifecycle env code in dynflow