Medium: ocf-shellfuncs: set HA_LOGD depending on HA_use_logd

The retired lrmd used HA_LOGD, the latter development in
pacemaker dropped that variable. This ensures compatibility with
heartbeat and older installations.