Windows - Changes for OS versions newer than Vista
Refactor listFiles to avoid long boot time on Windows