Use "set -u" to avoid unbound variable issue (see 0d6b771942917d)