added JAVA_HOME option for Nodes and Agents