Convert get_correct_cversion to use create_conn_struct