[nim] making bootstrapping idempotent