bootstrap: don't prepare the cmake dir unless needed