Update Rubocop configuration

Previously the rubocop configuration didn't check the Rake file or any of the custom Rake tasks.  As these are all code worth checking, this change updates the Rubocop code to check them.  It also fixes the problems that Rubocop found.