Fixed endtag condition

The old condition would match any HTML comment with substring `'end'`. Thus, comments like this:

```html
<!-- build:js scripts/vendor.js -->
```

would be considered an `endtag`.

This commit fixes this issue.