fixed sqlite3 detection for Rails 4