ensure 'set shelltemp' on windows

On non-windows platform, `oldst` is undefined and a fatal error occurs.