Fix brew conditional check