Fixed windows related bug around URL path normalization

On a windows box, os.path uses windows path separators, which does not
match URL path separators. The class posixpath is OS agnostic.