Fix ipconfig regex pattern

As suggested by @andjoely. Should be tested by Windows users without
netifaces installed.

Closes gh-5491
Merge pull request #5506 from takluyver/i5491

Fix ipconfig regex pattern