[#2370] Fail early in generate_version_json.py if missing VERSION
[#858] .gitignore VERSION.json