improve ssh version check