Fixing es_url to use passed in version rather than always default val