Fixed crash on windows with subfolders