Support both slashes on Windows when making output dirs

The test was previously just early-outing because it felt there was "no directories" in that path.