Update src/core/opamGitVersion.ml on each new commit
Serialize the current OPAM version in the cache file.

This should fix #586
Improve again the detection of new commit
Replace the ugly shell script into a awesome ocamlscript

We update src/core/opamGitVersion.ml only if the current git revision has really changed