Use authentication when looking up ES version if required.

Just an oversight when we added version-specific urls and metrics.