Fix detection of Elasticsearch version for Beta and RC releases

The check assumes that the version is returned in semver x.y.z format, but
Elasticsearch has a nasty habit of having x.y.z.STRING to denote beta releases
Merge pull request #1 from vend/bugfix-elasticsearch-version

Fix detection of Elasticsearch version for Beta and RC releases