Fix box+homebrew detection.