Have version.sh check for version information in EXPORTED_VERSION
(formerly GITHASH).

This gives us usable version information for source which has been
exported from git with git archive.
(cherry picked from commit cc037a8804c3f260e33f5611272b192699927662)