build: smoketest: when rebuilding after an error, delete buildlog if it's OK