Fix the way sqlite version numbers are checked