fix dotfile handling