Fix badges script
Improve Rubocop configuration