Fixed error in detection of Sqlite in-memory mode.