Makefile: rebuild git.o on version change, clean up git$X flags