make regexps adapt to newer error messages in SQLite 3.8