Simplified pidfile code because of new sabnzbd version changes