Add pidfile option to status check