Silence shadow warning

Don't shadow path variable in the block to silence var being shadowed warnings in tests of rubygems and possibly others.