Extract multi-word resources correctly

It was trying the underscored version when it had already been dasherized.

Fixes #2.

TODO:

- [ ] write regression tests
- [ ] refactor
- [ ] push a patch release