fix dotfile directory bug