Use real path for tempdir (required for Mac OS X)