add dotfiles support

#492 with whitelist support
I prefer `#concat`:

```ruby
patterns.concat(extra_files.map { |extra_file| "#{dir_name}/#{extra_file}" })
```