fix sitemap generation when a filename contains another filename