Finally found out how to select the pdf_previewer based on the OS in the
.latexmkrc config file.