Better Windows compatibility for URL

`$_SERVER['DOCUMENT_ROOT']` is separated by '/', while
`__DIR__` is separated by `DIRECTORY_SEPARATOR`. Take this into account
when comparing them.