Forums are auto-ignore if they are not viewable by Visitors. However, if you want to exclude a forum from the sitemap manually, you can do so from the Forum Edit Page
Added more complex logic to detect which directory is the "sitemap" directory when using a relative path. This will help with having consistency on running Cli vs. Cron vs. AdminCP