Fix subprocess.check_output on early Python 2.6