Use the $stderr global variable for easier capturing

This makes it easier for other projects that build on top of homebrew to test commands by capturing the output.