[CB-3830] Fixed issue detecting java on Path in Windows