Fix path delimiters on windows for directory middleware

Chrome manages to hide this problem, but it's an issue when using Firefox.