fix fixWinEPERMSync. Add options. Remove chmod

Hi, 
I made some changes to fixWinEPERMSync.
The options functions were not getting passed in which was causing an error.
Also, CHMOD does not mean anything in a Windows context so I have removed that also.'

Cheers
Paul