Refactored and added logging to troubleshoot windows jre detection