added possibility to override paths in custom config.php. Fixes #232