normalize path and root to use the same slash (Windows)