functions.sh: use stdout option of consoletype

We do this so script authors who source functions.sh can use "set -e" in
their scripts.