fix "warning: circular argument reference - file" in Ruby 2.2.0