Fixed. The underlying issue was case-sensitive folder names. In windows "../../Api/Whatever" is the same as "../../api/Whatever". In Linux... nope. "Api" and "api" are separate and distinct.
Thanks everyone for your time!!
Thanks to our tireless DevOps engineers for spotting this.