switching tmpdir env call to bundler call