Fix for zsh issue

@graemechristie  @davidfowl 
Merging the changes from kvm repo to home repo so that the fix is in the kvm installed by homebrew
Actually, it might not break but you will have an empty first element and this could cause weird bugs later when people are not aware of that