Fix latexmk version checking