Fixes the checkEsVersion() function so that it only checks versions of Elasticsearch nodes.