Fix TmpDir test on Mac OS X.

/tmp is a symlink to /private/tmp on Mac, so don't fail if we cd into
the first and wind up in the latter.
Edit 8.2.0 version history item #4399
Merge branch 'V8_2_0-branch' into V8_2-branch
Merge branch 'V8_2-branch'