Fix test on windows by sanitizing path.