Cleanup test output when run via cmake/make check targets