Make dotfiles path determination more compatible