FIX #211 and #232. Checking $java_args[@] for memory settings, too.

Finally. This was a bit tricky, but should be fixed now. @jsuereth you may want to add this to the `sbt-launcher-package` project, too.

@kardapoltsev can you review/test please? I just checked with Ubuntu 14.04 and play.