Intro detection, override temp file location?

This is a duplicate of the discussion in PMS stopped honoring temporary directory setting. Now uses /tmp.