Added TempDir function to FileTemp object.