Merge pull request #9 from gmxu/master

Fix boolean checks in isFFmpegCommandRunning and killRunningProcesses