Fix loading of user environment with zsh

As discussed in #294.