added dirty "ensure => reinstalled" support for plugin upgrade