Fix zsh substring syntax.