fixed upgrade scripts for DEB-based distr