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

tmp dirs on OSX can be symlinks, so need to account for that.