Use latexmk rather than rubber.