os: modify os.tmpdir() to judge more recommended order in windows

If someone(e.g. amdin) want to use an old NT command script,
or has installed old windows in another dirve,
then %SystemRoot% would be more suitable.
And %windir is also used for old windows compatibility.

See: #3407