Fix server version detection in edge cases

@stevendanna Let me know if you think this is the right direction, I'll whip up a similar change for ec_backup.rb.   Really this should get factored out into a common class but that's a yak to shave for another day.