Support targetDirectory in webhelp + autopdf.