Implement a script to automatically generate build version information from git commit hash and date, updating version.json and creating latest.json.