Fix ignoring layouts from the sitemap when the source directory has been set to something other than 'source'. Fixes #896.