Changing the implementation to use node 'os' module instead of ifconfig
Minor fixes to get this working