Cleanup build log by redirecting test output to file