Use scripts to get the versionCode and versionName from the git tag

The version-code.sh script could be made more straightforward if a dependency on "sed" or "cut" is allowed, but a straight /bin/sh version works fine.