fix the configure script to retrieve correct xcode path if xcode not installed
in the default location.
Merge pull request #2121 from ulion/xcodepath_fix

[osx/ios] fix the configure script to retrieve correct xcode path if xcode not in default location