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.