add a compatability layer for subprocess.check_output on py2.6