build-api: sort out path issues