Use temp directory for generated files.