Fix a bug getting the default network interface on 10.1 and later