Formulae do not /usr/local/bin directly, you need to create symlinks into the formula's bin directory and Homebrew will link from there.

Also, don't use `system` for this, check out `Pathname#install_symlink` (grep for usage).