On Windows Erlang parameters were not getting passed to elixir.bat in a proper way

I altered the batch file so it parses, translates some and validates parameters that need to be fed into the Erlang run-time.

It might not look nice, but it works.

Fixes issue #1149