build: Fix detection of quotas on macos