Fixing --debug deleting temporary files.

@dwightguth please review.