better ssh host extraction, java v 1.6