Use Client#version rather than checking client class
Fix the build