allow nested config env override

WP [#17225](https://community.openproject.org/work_packages/17225)
wouldn't it be better to match on `/\A#{prefix}/`? just in case a non-prefixed variable could have the same string somewhere in it.