Use newer provideApplicationVersion instead of old logic to avoid the avgtool code completely
Export environment variables from the apps ipa, when ipa packaging is enabled

Does not work reliable when more than one ipa is built.

The following variables are exported:
${XCODE_CFBUNDLEDISPLAYNAME}
${XCODE_CFBUNDLEEXECUTABLE}
${XCODE_CFBUNDLEIDENTIFIER}
${XCODE_CFBUNDLENAME}
${XCODE_CFBUNDLESHORTVERSIONSTRING}
${XCODE_CFBUNDLEVERSION}
${XCODE_DSYMPATH}
${XCODE_IPAPATH}
Add BUILD_NUMBER and CONFIGURATION to the avaible custom ipa pattern variables