remove use of check_output in buildtools.py
since some Jenkins machines have older versions of python