This part seems wrong to me, see the comment that is removed by your patch about plugin_cfg_path already being created in the common_install recipe.