I guess you're referring to other scripts (from which this one has been inspired) but I can't see any check in ```get_mem_opts```:
https://github.com/typesafehub/activator/blob/master/dist/src/templates/activator#L122

Googling around a little I now know what you're referring to though:
https://github.com/sbt/sbt-native-packager/blob/master/src/main/resources/com/typesafe/sbt/packager/archetypes/bash-template#L159

I'll add that section to the activator script.