fix(config): ensure basePath is always resolved