Abstracted directory scanning on Windows