support --clean --nopre to avoid building the entire clean image again