Detects the best matching SQL dialect for files in <Generic> dialect.