Use correct API root when running in a subdirectory.