Plugin licence and gemspec

I improved this pull request #10119
Now it works correctly if git not installed.

PS. Sorry, if i did something wrong. It's my first pull request.