Con 1379 handlebars engine

Probably ```dirname``` should be put here.