fixing ffmpeg detection on Mac and Linux