Fixed getting MAC address for interface

Fixed/cleaned up the function for getting the MAC address for an interface.

This is much simpler, cleaner and fool-proof than attempting to parse the output of ifconfig.