SERVER-12786: add shell writeMode option