[generic] Improve jwplayer detection (Fixes #2731)