Fix sqlite environment check