improved function to create sitemaps

Signed-off-by: Patrick <pk@konstand.de>