Add git hashes to -V output

Same caveats apply as the canto-next patch: it tries it's best.