Added java.exe as alternate binary name for Java

2 Commits:
1) Fix a bug where setting JAVA_HOME and/or JAVAHOME in Windows does not find the java executable (add java.exe as an alternate name for java).
2) environment vars were not split and looped