fix: unbreak main (#6423)
### Description
https://github.com/vercel/turbo/pull/6417 and
https://github.com/vercel/turbo/pull/6416 ended up racing and we ended
up with main in a bad state. This PR just fixes the code added in the
former to use the changes in the latter.
### Testing Instructions
Turborepo should build on CI now
Closes TURBO-1636
---------
Co-authored-by: Chris Olszewski <Chris Olszewski>