diff --git a/src/Handler.php b/src/Handler.php
index ea249e71f2f9f1a405f47753dc1da9d55762ba99..781f5631358c6c5eea7cb393084fe091d911310c 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -139,6 +139,9 @@ class Handler {
     $options['webRoot'] = $webRoot . '/';
     $orig_ignored = FALSE;
     foreach ($this->getFiles($projectRoot, $webRoot, $settingsPath) as $template => $def) {
+      if (!$fs->exists($def['dest'])) {
+        $fs->mkdir($def['dest']);
+      }
       $twig_loader->setTemplate($template, $template);
       $filename = $twig->render($template, $options);
       $file = $def['dest'] . '/' . $filename;