Fix kvm shell script for zsh

 - Array assignment has to be done separately
 - Index in zsh array starts from 1

Bug #166