making reset.sh xcode 4.6 friendly
Merge pull request #1701 from sebv/xcode46_reset

Avoiding reset.sh crash when using Xcode 4.6