Modified setBuildVersion.sh to work with AdHocDistribution which is used to Archive and upload builds to TestFlight.
Modified setBuildVersion.sh to use the number of git commits in the master branch when archiving for App Store release.
Merge pull request #259 from neophit/develop

Fixed GIT_COMMIT_SHA for TestFlight build uploads.