0.5.1.1: fix setEnv usage for base-4.6.0.1 and base-4.7.0.1