Builds the final configuration object after applying possible modifications to the base configuration.