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