packaging: bin: die as expected if java home is not found

export always return success, so set in two phases.

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