Add missing MIT licence
Helper: fix generated version string

We can't use dash in our version. Use "commit-count" + .g + "shortref"
instead.