Add branch and SHA to version output when running non-npm builds.

Looks like the following:

```
version: 0.0.26-dev-add-sha-versioning-d3680e241e
```

Interpreted as:

* The version from `package.json` is `0.0.26-dev`.
* The current branch is `add-sha-versioning`.
* The current SHA is `d3680e241e`.