Improved check of Temp Directories.