Made to call rebar.cmd in Windows

In Windows, rebar executable is rebar.cmd, which does not exist on Linux/Unix, not rebar.
Made to use rebar.cmd if it is there.