This looks very specific to a given naming convention ("Partials start with underscore"). This will have to be generalized or removed.

I would suggest a `processPartialName` function that would be passed the path and should return the correct partial name, ala [grunt-contrib-handlebars](https://github.com/gruntjs/grunt-contrib-handlebars#processpartialname).