aubio: fix more audit warnings
ruby-build: fix sha1
ghostscript: fix typo

Also use std env when djvu is requested.

Closes #20787.
brew --env: Add missing CPATH environment variable

Closes #20813.

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