Fix errors running coverge with build dir present