metrics-net: Skip if /sys/class/net/:iface_path is a regular file

If the host has a bond interface, there would be `/sys/class/net/bonding_masters`, which is not a directory. In this case, `metrics-net.rb` fails to run. With this patch, it simply ignore if the `iface_path` is a regular file.