Remove path damaged by windows long names
Improve windows batch script, add Linux one