use mkdir and a callback rather than mkdirSync when writing the sitemap