fix duplicate plugin install, add test
Merge pull request #1 from aimtheory/plugin-fix

gracefully handle error when plugin is already installed, add test coverage