clean the checkout tree when building