Fix to work with older Xcode if Xcode 6 cannot be found

I do not have Xcode 6 installed, so the current build script would never work for me.