added support for Xcode 5

Xcode 5 changed the naming convention for the devices, which breaks your script:

![devices](http://f.cl.ly/items/2E0u2U1K2F2n0e1a3e0y/Screen%20Shot%202013-09-16%20at%2012.58.47%20PM.png)

This pull request adds support for the new naming scheme.

It should be backwards compatible and is also feature proof (sees if the Xcode major version is 5, not if the version is 5.0).

Please test if this works on your existing setup, I only tested against Xcode 5 :)

Thanks!