detect windows platform and launch batch file instead of sh script

With this change the debug task will work out-of-the-box for Windows users.