[zsh] Fix the stgpatches function.