you don't need any of the conditions above, just do:

```
var pathToConfigFile = (/* we need to figure the path of the config which is not necessarily the process.cwd()*/) || process.cwd();
preprocessorModule=require(path.resolve(pathToConfigFile, preprocessor));
```

that's what will guarantee that in the config you can reference relative paths.

the other option is to use npm modules for each processor, in which case `require(preprocessor)` will be just enough. although this is problematic for people who only want to use yuidocjs without having to deal with npm stuff.