Use xcode-select rather than `which` to find xcodebuild

On my system `which xcodebuild` gives me `/usr/bin/xcodebuild`. Obviously the
sdks are not in `/`, which is what `DEVELOPER_DIR` is before this patch.