calculate sitemap dir rather than hard coding