Fixed handling of .pdf and .zip files
Addition to lib