Sort out temporary directory naming on UNIX.