[minor] improve RPM and DEB generation in Makefile, change version string format