zbeacon: uses only interfaces that are running

Adds a check in s_get_interface to ignore the interfaces that do not
have the IFF_UP flag set.