Fix #1039 ATOM feed for sites using https or a subdirectory

Fixes issue #1039.  Atom feed is invalid when SITEURL has
https or a subdirectory, for example:
* https://myblog.com/
* http://mysite.com/blog