[dotfiles] Support handling package names with trailing /