Fix issue where nested APIs are called with the version number in the
incorrect position within remote URL