fix problem checking root path on windows