fix the JAVA PATH issue. We should always use JAVA_HOME to start supervisor and nimbus