Fix a zsh prompt building bug testing for incorrect function