Improve shell script wrapper to support identification of java specific options for memory and properties