Tweaked some config internals to make it easier to work with basePath and updated the tests for compiler