flake8 tests: same error message in all scenarios of running tests in
case flake8 is not installed

now works also with py.test for example
exclude files untracked by git from flake8 check

@krischer, maybe can you check if we need something like in #492?
refactor, use for/break/else