Wrap IO.popen to stub it more easily

Signed-off-by: Tammer Saleh <tammer@pivotallabs.com>