Bug fix in chk_outputs.sh