BS-8641: java executable path name is dependent on OS (with or without
.exe), add condition