Improve and test ffmpeg version detection