Add full support for windows.

Hi.
The plugin doesn't work on my windows because I haven't XTerm. I have put the cmd.exe by default. I have also change some other minor things.

Check if it always work for you before commit. I have only test on my windows system I hope I haven't break the linux support.

Regards Jonathan Da Silva.