Fix #plugin#Install installing parent dir if path doesn't end with slash

Fixes #94.
So it's correct for this to return e.g. `C:\path\to\plugin/`?