Moved dotfiles handling into its own module.