Fix temporary files' clean-up on build failures.

I wasn't correctly removing the garbage when a build script failed.