ensure 'set shelltemp' on windows

I think a local variable is enough in this case, rather than a script scoped variable (I mean `s:is_windows`).