moved fct for parallel

I moved the script that call parallel for Mac and win to another file 
I've called the method .Platform$OS.type to know which is the current OS type