use posixpath style join as urljoin misbehaves

normalize path for relpath to work and set main siteurl internally to /