adjusting TMPDIR defaulting rules to accommodate Windows and to give a warning