Resolve OS dependent java and javac reference.