backport of bugfix 194

https://github.com/lusis/chef-logstash/pull/199