Fix connect automatic test for kfreebsd