detect bsd version of nc