Fix windows specific issues for FS module.