Better check for ffmpeg on linux

The previous check was not very robust, and actually it failed on my Ubuntu 12.04. This should be better.