Consider JAVA_OPTS environment variable in scripts