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.