buildrepo clean improvements for incomplete builds. and a bug fix.