Fix bug where it doesn't recognized VERSION_NAME has been replaced

https://github.com/couchbase/couchbase-lite-java-core/issues/348