Fix ipconfig regex pattern

As suggested by @andjoely. Should be tested by Windows users without netifaces installed.

Closes gh-5491