fix for windows paths

glob returns paths with /, but the rest of the program
expects \ in windows.