packaging: fix typo in java detection caused only version match

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1023538
Change-Id: Ia0224b3bd1172ef5167c7085d2dd29aba72abaff
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>