bash: modify .bash.d/upgrade.sh