properly detect the spatialite version in use