packaging: fix typo in java detection caused only version match

Change-Id: Ia0224b3bd1172ef5167c7085d2dd29aba72abaff
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>