Fix multi-line matches for hbs directives