Refactor the `chooseModuleName` function.
Refactor the `chooseModuleName` function.

This changes it so it uses a single Regexp, instead of its previous
slightly more imperative logic. Nothing should change, overall, though
this could be a little faster.

The regexp `\/-([^\/]*)$` may be de constructed as follows:
- `\/-` **matches a slash followed by a dash**
- `([^\/]*)` **matches a group of any number of any character persides a
  slash
- `$` **matches the end of the string, so only the last 'part'
  (supposing parts are separated by slashes) will be matched

The `replace` call then, _matches the last 'part' beginning with a dash_
and then replaces it with the expression '/_$1'. In other words, the
supposedly matched slash, an underscore (which takes the place of the
dash) and the group matched between the dash and the end of the string
'$1'.

So:
```javascript
'something/else/-wat'.replace(/\/-([^\/]*)$/, '/_$1');
// 'something/else/_wat'
```

princeofdarkness76/ember-resolver,greyhwndz/ember-resolver,williamsbdev/ember-resolver,princeofdarkness76/ember-resolver,bianjp/ember-resolver,ember-cli/ember-resolver,201-created/dangerously-set-unified-resolver,mike-north/ember-resolver,joshvfleming/ember-resolver,bianjp/ember-resolver,mike-north/ember-resolver,greyhwndz/ember-resolver,joshvfleming/ember-resolver,williamsbdev/ember-resolver,ember-cli/ember-resolver,201-created/dangerously-set-unified-resolver