correctly increase the unprocessed counter, regarding only directories;