Add ability to override path config, while preserving the same basePath

In some cases we need ability to customize require-path depending on some run-time value. With that PR we can access raw basePath and edit it. Can be useful for tests.