check for JAVA_OPTS env. variable

Fix code to check for JAVA_OPTS env. variable instead of java_opts. This makes it consistent with the Java buildpack as well. The documentation was already talking about JAVA_OPTS env. variable and does not need to be updated.