Check for mariadb log directory on yum-based systems

Fedora 20 and RHEL/CentOS 7 ship with Mariadb instead of Mysql. Add
support for the log location on those distros.