fixing ubuntu java detector