fix PATH cleaning on ZSH, fix #1500