Don't rely on subprocess.check_output: it's only in python2.7

Signed-off-by: David Scott <dave.scott@citrix.com>