Fix JAVA_HOME missing trailing slash