Support flexible base path