Fix path_hasbin so that it works properly under zsh