app/testpmd: fix PF/VF check of flow director