Fix rubocop's SpecialGlobalVars warnings.