Version defense

Simple fix to allow plugin to work outside a git repo, albeit the version functionality wont work in that case.