add dotfiles support

#492 with whitelist support
For consistency, I’d rather have this be

```ruby
extra_files.each { |extra_file| patterns << "#{dir_name}/#{extra_file}" }
```