[RuboCop] Fix Rubocop when invoked via rake

Also get rid of warnings about deprecated recursive search pattern style