avoid to check the non-existent dirs/categories
Merge pull request #5 from bor/fix/perl_dirs_and_cat

Sergiy Borodych removes non-existent categories from the scanning logic.