headless: stack cache dir defaults to the user's custom tempdir.