Use -ldflags to set git commit version

Replaces the previous sed / templating with an ldflag to
set the commit at build time.