Maybe the default pattern should be set in a smarter way - `lib` if we're in a gem, `app` and `lib` if we're in a Rails app.