doctor: quoting fix

The one liner should put `#{HOMEBREW_PREFIX}/bin:$PATH` into bash profile.
Previously it was being interpreted by the shell before being put in bash profile.

Closes #24008.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>