fix the bug of pathExists under Windows