Handle startup case when logstash user != logstash group

Handle startup case when logstash user != logstash group, breaks the startup chown and writing of the PIDFILE. Fixes #325.