Fixed shell errors.

Compatible with non-BASH shells.
checkFFMPEG if statement works.