You can't assume a `/usr/local` prefix. Use `HOMEBREW_PREFIX+'opt/share/misc/magic'` or similar.