bootstrap: adding support for cleaning up and restting buildsystem