Improved dotfile handling