[PATCH] cleanup the build directory when re-running a failed build