Change scratch directory for validation.

We should not "leak" any files during validation. I set the scratch directory
to the current directory to prevent that.