update temp path to use system temp path (especially for windows)