Fix tmp dir never cleanup

On push we create a tempDir inside graph/_tmp, and it was never cleaned up

Fixes #2667