Fix the doctests for subprocess_compat