Fix rake tasks that try to reference logger

Tasks defined outside of the Rakefile did not have access to the ``logger``
local variable defined in the Rakefile, so would error when they tried to use it.
Merge pull request #94 from alphagov/fix_indices_rake_tasks2

Fix rake tasks that try to reference logger