test: Don't use ifconfig, as it's less available on linux

Use the 'ip' command to test for the presence of an interface instead.

This was a complaint from a contributor to cockpit. Lets make life as easy as possible.