Are you sure the sh -c is necessary here? I would think that echo on its own should be enough... plus, in the non-Linux distros, I don't know that sh can reliably be expected to exist (which sounds silly, but it's true).