Updating thread.bash to output in a friendlier way when debugging