pud: fix java detection in the wireformat java bindings (again)