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