Add setgid support to logstash agent init script