Added try..catch block around generate action to prevent files loss on exceptions. Added dependency on modified versions of jade-ext and ejs-ext containing missed templates.