Check if mach-o files are linking to /usr/local/lib, replace with HOMEBREW_PREFIX.join('lib')