task-build: Write version number for build with commits

This will now show up in "ostree admin status".