fix upgrade for percona build