Fix sitemap links for sites in subdirectories
Fix for base URLs ending with `/`
Added fix to ignore the current directory
Added doctests
Fixed doctests to work cross-platform
Merge pull request #517 from dhruvbaldawa/fix-sitemap-links

Fix sitemap links for sites in subdirectories