making reset.sh xcode 4.6 friendly