Makefiles: Read the actual API version rather than using always '1'.