add dotfiles support

#492 with whitelist support
It’s not a bug. The `+` form creates a new array by copying the original array and adding the new element. Copying is slow and creates lots of temporary objects that stress the GC.