Choosing java executable based on java.home