Fix install/update plugin (thanks unit tests)