some refactoring while fixing a minor path mismatch for linking the dotfiles directory