sonar: Use opt_prefix

Cleaning up places that can use `opt_prefix` instead of
`#{HOMEBREW_PREFIX}/opt/<packagename>`