Fix lang.py to use the new version/build fields.

Also set/use the commit_id attrs.