Fix pdfcount to work with filenames containing whitespace.