Update facedetect.cpp to work with AVI

There was a bug where the return EXIT_FAILURE was outside the capture flag, resulting in videos never actually getting processed. This will fix it.