Recognize onDemand option in add()

If add() is called with opts.onDemand, then preconfigure() will be
called instead (the plugin will be configured, but not scanned for
loading).