Cleanup script and make sure generated PDFs are placed in right directory