WFLY-221 check if JAVA_HOME exists in batch scripts for standalone and

domain

https://issues.jboss.org/browse/WFLY-221