fix path assertion on Windows