Properly attribute code borrowed from Homebrew