SERVER-10178 Improve debugging output in shell.