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

Needed for us Windows users.