utils: use the $stderr global variable.

For easier capturing.

Closes #31303.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>