Don't override jvm flags if no -mem option is passed

This should resolve #57 by only overriding `-Xmx` and family if the `-mem` option is actually present.