use tmp directories rather than writing to the installed petrel directory