Add support for log directory being in different locations on Red Hat
and Debian