https://issues.apache.org/jira/browse/AMQ-5479

Fix script output not reading JAVA_HOME