add spec tests for macaddress on Linux with /sys available

When /sys/class/net/*/address is readable use that rather than parsing ifconfig
output.
Added spec test for dealing with the macaddress of the local loopback
interface on Linux.