fix rare faulty TEnv initialization when workdir=homedir in three Egamma packages
Cherry-picked !44310 (merged) from 21.2 into master to fix a rare bug, no impact on physics / performances.
Cherry-picked !44310 (merged) from 21.2 into master to fix a rare bug, no impact on physics / performances.