filter-utils: Check main filter nodes in a more robust way
This patch makes the check more robust when detecting main filter nodes. This is because some filters might append '/Internal' to their main node media class. The direction check has also been improved to work with Video filters.