driver: Clean up temporary files after a module has been compiled
The refactoring accidently removed these calls to eagerly remove temporary files after a module has been compiled. This caused some issues with tmpdirs getting filled up on my system when the project had a large number of modules (for example, Agda)
Fixes #20293 (closed)