Refactor percol.zsh