Move excluded paths to Rakefile for re-use

Other tasks will want to use this to ignore vendored code. A variable in
`Rakefile` won't be accessible to the `:lint` task. But a funtion is.