Fix zsh incompatibility with conditional switch.