properly detect windows style root path