Refine ODBC checks and allow for lack of odbc_config.