windows_slashify assigns, does not return a regex

Looks like a typo in 5fa7b3a9ad93ad69405a7159da43d541dcb73d65 causes some tests to fail.