[zsh] Better bash emulation on zsh >= 5.0.0