Separate dotfiles functionality into separate script