Better pidfile management in init script