Allow max Java heap size to be set via an environment variable.