Adding TempDirectory in the likeness of TempFile.