Don't download the core when a local build is present

There's no particularly pleasant way to set REALM_CORE_VERSION when
building from Xcode, so try to automatically detect that the copy of the
core was built locally and leave it alone if so.
Merge pull request #712 from realm/tg-core-local-build

Don't download the core when a local build is present