Fixed crash when running cppcheck on a single file or from within the file explorer