Only rebuild a minimal version.c file when git commit changes