SCI-1908: use system temp directory to store intermediate files