better sdk detection for custom homebrew formulas