Fix ipconfig command to show IPv6

This commit also contains fixes for proper extraction of subnet masks
based on operating system.
Merge branch 'master' into ipconfig_ipv6
Land #40, fix for ipv6 ipconfig