Replace subprocess calls with check_output_logged