Use the plugin's version in the local path if it was passed

Without this fix the version attribute is ignored if the plugin was
already installed before.

Fixes [COOK-3623](https://tickets.opscode.com/browse/COOK-3623)