change includes to work on raspberry pi
fix post capture command when used with multiple output file mode
fix capture count when not used with multiple output file mode
fix multiple output file mode detection