Fix bug in reading old pidfile formats when stopping agent.