actioned most suggestions from lunaryorn in https://github.com/lunaryorn/flycheck/pull/137