Handle the --configuration option for management commands during installation of the import hook.