(CPR-57) Style fixes

Now that the packaging repo has rubocop we need to have a baseline for
all future runs. This commit goes through and fixes all 316 detected
offenses.
Although thinking it through, the slashes in the path would escaped in practically any other regex implementation so keeping them escaped is probably more portable. Blah. Computers.