Modify the way we fetch the installed version of the plugin

Fixes #2025
that might be a better solution indeed. will try it out.