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

Incorporating comment from Issue #11