Allow scripts created with write_jar_script to receive `JAVA_OPTS`

I recently had the need to increase the java heap space but was unable to with
the current state of this script generator. This change allows the widely used
`JAVA_OPTS` environment variable to be passed in with the script and set values
at runtime like `-Xxm1024m` to fix my issue.