Open xcworkspace instead of xcodeproj if present

Fixes #3
Merge pull request #4 from CocoaPods/issues/3

Open xcworkspace instead of xcodeproj if present