Fixes #42. Always use api_base_path if provided