as noted in https://github.com/hojberg/grunt-yui-config/issues/2 I think calling processPath like this would be the best approach:

```javascript
parts = modpath.split('/');
name  = parts[parts.length - 1].replace('.js', '');

if (processName) {
  name = processName(name, p);
}
```