Better pidfile extraction in initscript