module Bundler::SharedHelpers

def chdir(dir, &blk)

def chdir(dir, &blk)
  Bundler.rubygems.ext_lock.synchronize do
    Dir.chdir dir, &blk
  end
end