Properly clean tmp after generator spec