Improve error handling

- Don't install .git repos
- Don't mistake files for plugins