Load setup module when necessary when bootstrapping the CLI

fixes #8146