Fix tmpdir integration tests Upstream-commit: c9ca37dfe9c6050a290e52cad107bb8d4fd575bf Component: engine