ifstat segment made compatible with Mac OS X

The default /usr/bin/sed isn't compatible with the used regex. Thus, detect if `gsed` is available and use it, if so. Also, added `-z` switch to `ifstat` to ignore unplugged interfaces.