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

Ticket: #5243
(cherry picked from commit 8a453f545e77b436efcfc06efd60a33534638568)