[version] Read git commit log manually

This should fix #374 without introding a dep on any git python module.