Avoid unnecessary recompiles due to riting to gitversion.h.

This will get rid of unnecessary rebuilds everytime "make" is called.