check before reseting build dir