Fix regex to work when status isn't the last line of ifconfig output.

Ticket: #5243