add checks for MariaDB
Simplify Maria DB detection, give @edlitmus credit.