Minor fix to zsh-style cd string replacement