xcodeenv: Reimplement simulator script to work with Xcode 6