Python 2.6 subprocess does not support check_output(), backport it