Support ruby 2.4
Since that's the version we're currently deploying with td-agent: gitlab-cookbooks/gitlab_fluentd!159 (comment 354086473)
This is based on https://gitlab.com/gitlab-org/fluent-plugin-redis-slowlog/-/merge_requests/1
Edited by Bob Van Landuyt