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

Fixes #94.