to-env.sh: Fail if command returns non-zero.