Debian and RPM packaging bash templates final refactoring