Fix kvm on zsh

Separate array variable declaration and initialisation
change array index to use base 1

Fixes #75