Fixed bug in add on zsh <= 4.3.10

See http://www.zsh.org/mla/workers/2014/msg00501.html for details.
At time of writing, some RedHat and CentOS still have 4.3.10 as
the most up-to-date zsh in their package managers, so this should
allow wd to work on those systems properly.