Fixed GIT_COMMIT_SHA for TestFlight build uploads.

Modified setBuildVersion.sh to work with the AdHocDistribution configuration which is used to Archive and upload builds to TestFlight.