allow nested config env override

WP [#17225](https://community.openproject.org/work_packages/17225)
That ```inject``` could be replaced by a simple ```each``` where you simply update new_config.