Fixes issue where cli compiles non handlebars templates

When base folder has non-handlebars template files like so 
```
test/
     app.js
     one/
         test.handlebars
    two/
       test.handlebars
```

and then `handlebars test/**` is run the file `app.js` gets included in the output. 

This commit fixes the issue.