using realpath since tmp dirs on OSX can be symlinks
Merge pull request #768 from qwcode/issue_707

fix for issue #707 (numpy global installs on OSX)