Fixed error in usage of netifaces