Add a backported check_output for 2.6 compatability.