Move path_remove fn into dotfiles script.