Make upgrade bash function work as root.