duplicity: fix array iteration for ruby 1.9.x