Fixed the ifconfig parser

Now the ifconfig parser seems to work better