Fix loading of user environment with zsh (close #358, fix #294)