Fix java harder

I always want the latest installed Sun Java, so simplify alternatives
handling around the latest link and fix the test for existing
alternative registration with a readlink alternative (following Fedora
18's out of the box smashing of alternatives --display java).