d()->type now returns uppercase?
switching to use drush_invoke_process.
Merge fix.