[Bug 841284] profile.d/alljava.sh does not always detect installed jdk