This should fix the problem with issue #1149

I altered the batch file so it parses out some parameters that need to be fed into the Erlang run-time.

It might not look nice, but it works.