Move dotfiles backup dir existence check to installDotfile function