use check_output
on windows, check_output will throw an error is latexmk is not
installed, but Popen doesn't.