Modify the way we fetch the installed version of the plugin

Fixes #2025
You have Enumerable#detect which finds and returns the first element for which the condition is true