Add version check to prevent errors on older zsh