Fix refactoring type on dotfiles function