Add and use config_check_output() instead of subprocess.check_output().