Work around CommitBuild commiting dirty trees by doing a fresh write-out to commit, instead of committing a previously-written and possibly dirty tree