Fail on unsupported osfamilies
Refactor wait parameter logic

  - rename $real_wait to $_wait to indicate it was munged
  - use validate_re function to verify tcp|udp