dotfiles.sh: small refactoring