CLOUDIFY-2514 fix plugin extraction logic