fix pear upgrade-all