fix cleanup of /tmp in tests Upstream-commit: 0f2de5158fe66b4906de176f90e3e6d813336450 Component: engine