minor fix for set -o nounset