use os.path.realpath symmetrically on OS X temp dirs