Updated iOS directory script to work with Xcode 6