Fix dotfiles handling issues