fix array slicing in zsh, didn't work on some systems
amend last commit, slicing was still wrong