util: Join PDFs using generic paths