fix wrong variable in check_zsh method