fix sqlite detection