fix $JAVA_OPTS in script