fix(tempFiles): use third-party temp files module

Prevents some issues we have been seeing with temp file management.