Fix install bug when candidate version is not provided in zsh.

ZSH's array index is not started with 0 but 1.