Make Setup.py Support for zsh.

When i use zsh for my default shell, `python setup.py` don't take the correct information for me.This change make it works.
Merge pull request #7337 from chareice/patch-1

Make Setup.py Support for zsh.