rails/rails — pull request #8839 by mattdbridges (2013-01-09 04:26:35+00:00)
Title: Clarify Dir.chdir definition

```ruby
result.concat Dir.chdir(path) {
# stuff to concat
}
```

This was a really confusing approach to look at. Performing the `Dir.chdir` before the `concat` is a little cleaner.

Also used `Hash#fetch` instead of `{}[:key] || :default` approach to simplify.