Fixes TC-4823 — `cli.sdk.platforms.iphone` is `undefined`

We check for `cli.sdk.platforms.iphone` before checking for `.path`.

This crashed a fresh **Appcelerator Studio** setup on Windows 7.