Ensure parent tmp directory exists