`env-setup` fix for zsh <= 4.3.10

This fixes issue #5026. This bug was introduced in
2b3381de7c6e0924b29123c33f0627a12418f2c8.