use the real path to fix OS X /var/folders vs. /private/var/folders mismatch
Merge pull request #864 from ambv/realmacosxtmp

Fixed two test failures when tmp dirs are below a symlink.

This affects OS X where /var is a symlink to /private/var.