lib: Fix brew formula check