Replace sed with pure zsh and filter out PWD