Changed _run to not set stdout=None when retcode=True

See bug #2640 for more details
Merge pull request #3129 from shadowfax-chc/retcode

patch to fix #2640