Log driver output to NAME.error and NAME.output.

This is useful for tests which wish to read these files.
Merge pull request #10 from smspillaz/cmake-unit.item_10

Log driver output to NAME.error and NAME.output.