Fix for coverity
Fix for coverity (warn if mkdir fails)
Fix for coverity (deal with getsockname failure)
Fix for coverity (return error code if address family is unknown)
Fix for coverity (check setsockopt succeeded)
Don't warn if the dir already exists
Fix for coverity (should check both octets of dv_type if length is two)