clean up git revision handling in several packages